package com.kele.springcloud.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@NoArgsConstructor
@Accessors(chain = true) // 链式编程
public class Dept implements Serializable {
    private long dept_no;
    private String dept_name;
    private String db_source;

    public Dept(String dept_name) {
        this.dept_name = dept_name;
    }

    /**
     * 链式编程
     * Dept dept = new Dept();
     * dept.setDeptNo().setDeptName().setDbSource;
     */
}
